using System;
using System.Collections.Generic;
using System.Text;
using LngT.Interfaces.DBUserRoles;

namespace LngT.Core
    {
    [Serializable]
    class DBUser
        {
        public DBUser( int id, string userName, string password, IDBUserRole privileges )
            {
            _id = id;
            _userName = userName;
            _password = password;
            _privileges = privileges;
            }

        private string _userName;

        public string UserName
            {
            get
                {
                return _userName;
                }
            set
                {
                _userName = value;
                }
            }
        private string _password;

        public string Password
            {
            get
                {
                return _password;
                }
            set
                {
                _password = value;
                }
            }

        private IDBUserRole _privileges;

        public IDBUserRole Privileges
            {
            get
                {
                return _privileges;
                }
            set
                {
                _privileges = value;
                }
            }

        private int _id;

        public int ID
            {
            get
                {
                return _id;
                }
            set
                {
                _id = value;
                }
            }
        }
    }
